package com.cloudkinto.vo.user;

import com.cloudkinto.vo.company.CompanyPageVo;
import com.cloudkinto.vo.warehouse.WarehouseRes;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhangyy
 * @date 2020/4/27 21:10
 * @description:
 */
@Data
@NoArgsConstructor
public class UserDetailRes {
    @ApiModelProperty("id")
    private Long id;
    private String userAccount;
    private String devCode;

    @ApiModelProperty("姓名")
    private String userName;
    @ApiModelProperty("角色id")
    @NotNull(message = "pls.choose.role")
    private Long roleId;
    @ApiModelProperty("账号状态")
    private Integer userStatus;
    private String roleName;
    @ApiModelProperty("邮箱")
    private String userMail;
    @ApiModelProperty("电话")
    private String userPhone;

    @ApiModelProperty("0 客户全部可见 1手动选择")
    private int whiteCus;
    @ApiModelProperty("0 仓库全部可见 1手动选择")
    private int whiteWh;
    @ApiModelProperty("可见客户id")
    private List<CompanyPageVo> cusList;
    @ApiModelProperty("可见仓库id")
    private List<WarehouseRes> whList;

    @ApiModelProperty("头像")
    private Long headFileId;
    @ApiModelProperty("头像路径")
    private String headFileUrl;
    private String fileName;

    public UserDetailRes(Long id, String userAccount, String userName, String devCode, Long roleId, String roleName, String userMail, String userPhone, int whiteCus, int whiteWh) {
        this.id = id;
        this.userAccount = userAccount;
        this.devCode = devCode;
        this.userName = userName;
        this.roleId = roleId;
        this.roleName = roleName;
        this.userMail = userMail;
        this.userPhone = userPhone;
        this.whiteCus = whiteCus;
        this.whiteWh = whiteWh;
    }
}
